.class Lcom/xingbook/paint/m;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/xingbook/paint/l;

.field private final synthetic b:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/xingbook/paint/l;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/paint/m;->a:Lcom/xingbook/paint/l;

    iput-object p2, p0, Lcom/xingbook/paint/m;->b:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/paint/m;->a:Lcom/xingbook/paint/l;

    invoke-static {v0}, Lcom/xingbook/paint/l;->a(Lcom/xingbook/paint/l;)Lcom/xingbook/paint/PaintGameAct;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/paint/PaintGameAct;->k(Lcom/xingbook/paint/PaintGameAct;)Lcom/xingbook/paint/o;

    move-result-object v0

    const/4 v1, 0x2

    const-string v2, "\u6b63\u5728\u4fdd\u5b58\u56fe\u7247\u00b7\u00b7\u00b7"

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/paint/o;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    iget-object v0, p0, Lcom/xingbook/paint/m;->a:Lcom/xingbook/paint/l;

    invoke-static {v0}, Lcom/xingbook/paint/l;->a(Lcom/xingbook/paint/l;)Lcom/xingbook/paint/PaintGameAct;

    move-result-object v0

    iget-object v0, v0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->getSnapShoot()Landroid/graphics/Bitmap;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/paint/m;->b:Ljava/lang/String;

    invoke-static {v1, v0}, Lcom/xingbook/paint/c/a;->a(Ljava/lang/String;Landroid/graphics/Bitmap;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/paint/m;->a:Lcom/xingbook/paint/l;

    invoke-static {v0}, Lcom/xingbook/paint/l;->a(Lcom/xingbook/paint/l;)Lcom/xingbook/paint/PaintGameAct;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/paint/PaintGameAct;->k(Lcom/xingbook/paint/PaintGameAct;)Lcom/xingbook/paint/o;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lcom/xingbook/paint/o;->sendEmptyMessage(I)Z

    iget-object v0, p0, Lcom/xingbook/paint/m;->a:Lcom/xingbook/paint/l;

    invoke-static {v0}, Lcom/xingbook/paint/l;->a(Lcom/xingbook/paint/l;)Lcom/xingbook/paint/PaintGameAct;

    move-result-object v0

    invoke-static {v0, v3}, Lcom/xingbook/paint/PaintGameAct;->a(Lcom/xingbook/paint/PaintGameAct;I)V

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u6210\u529f\u4fdd\u5b58\u5230\""

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v1, Lcom/xingbook/c/c;->v:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/xingbook/paint/m;->a:Lcom/xingbook/paint/l;

    invoke-static {v1}, Lcom/xingbook/paint/l;->a(Lcom/xingbook/paint/l;)Lcom/xingbook/paint/PaintGameAct;

    move-result-object v1

    invoke-static {v1}, Lcom/xingbook/paint/PaintGameAct;->k(Lcom/xingbook/paint/PaintGameAct;)Lcom/xingbook/paint/o;

    move-result-object v1

    invoke-virtual {v1, v4, v3, v4, v0}, Lcom/xingbook/paint/o;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/paint/m;->a:Lcom/xingbook/paint/l;

    invoke-static {v0}, Lcom/xingbook/paint/l;->a(Lcom/xingbook/paint/l;)Lcom/xingbook/paint/PaintGameAct;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/paint/PaintGameAct;->k(Lcom/xingbook/paint/PaintGameAct;)Lcom/xingbook/paint/o;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lcom/xingbook/paint/o;->sendEmptyMessage(I)Z

    return-void

    :cond_1
    const-string v0, "( \u2299 o \u2299 )\u554a\uff01\u4fdd\u5b58\u5931\u8d25\uff0c\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u624b\u673a\u622a\u5c4f"

    goto :goto_0
.end method
